//
//  ProductSpecCell.h
//  LazyCat
//
//  Created by Abner on 16/9/22.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddProduct.h"
@class ProductSpec;
/**
 *  "添加商品"多规格【没有删除，因为规格至少要有一个】
 */
@interface ProductSpecCell : UITableViewCell<UITextFieldDelegate>

@property(nonatomic,strong)UILabel *specNameLb;
@property(nonatomic,strong)UILabel *marketPriceLb;
@property(nonatomic,strong)UILabel *salePriceLb;
@property(nonatomic,strong)UILabel *costPriceLb;//成本价
@property(nonatomic,strong)UILabel *lcSalePriceLb;
@property(nonatomic,strong)UILabel *commissionpriceLb;//分销佣金
@property(nonatomic,strong)UILabel *numStockLb;
@property(nonatomic,strong)UILabel *imageLb; //对应图片

@property(nonatomic,strong)UITextField *specNameTf;
@property(nonatomic,strong)UITextField *marketPriceTf;
@property(nonatomic,strong)UITextField *salePriceTf;
@property(nonatomic,strong)UITextField *costPriceTf;//成本价
@property(nonatomic,strong)UITextField *lcSalePriceTf;
@property(nonatomic,strong)UITextField *commissionpriceTf;//分销佣金
@property(nonatomic,strong)UITextField *numStockTf;
@property(nonatomic,strong)UITextField *imageTf; //对应图片

/** 选择的图片 */
@property(nonatomic,strong)UIImageView *specImgV;

@property(nonatomic,strong)UIButton *arrowBt; //箭头
/** 规格模型 */
@property(nonatomic,strong)LCProductSpec *aSpec;

/** 跳转到图片选择的block */
@property(nonatomic,copy)void(^ProductSpecCellArrowBlock)();

/**
 *  给VC传值
 */
@property(nonatomic,copy)void(^specBlock)(LCProductSpec *aSpec);

/**
 *  给ProductSpecCell设置数据（扫码或输入条码拉取商品成功）
 *  @param aSpec 规格模型
 */
-(void)setupProductSpecCell:(LCProductSpec *)aSpec;

+(instancetype)cellWithTableView:(UITableView *)tableView;

@end
